package com.gitee.mrj.aiboot.annotation.config.sf.ui.widget;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
@Documented
public @interface SFTagWidget {


    /**
     * 设定标签工作的模式，默认：`checkable`
     */
    Mode mode() default Mode.CHECKABLE;

    public enum Mode {
        DEFAULT("on"),
        CHECKABLE("checkable"),
        CLOSEABLE("closeable");

        private final String type;

        Mode(String type) {
            this.type = type;
        }

        public String value() {
            return this.type;
        }
    }
}
